<?php /* Smarty version 2.6.19, created on 2009-02-05 16:23:23
         compiled from admin/admin_main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/admin_main.tpl', 43, false),)), $this); ?>
<table cellspacing="1" cellpadding="4" border="0">
<tr valign="top">
<td width="100%">
    <div style="float:left;">
       <?php if ($this->_tpl_vars['mainpageauth']['config']): ?><a class="hintanchor" href="admin.php?page=config" title="Website Configuration :: Configuration for the website."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/mainconfig.png" alt="Website Configuration" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <a class="hintanchor" href="admin.php?page=contentManager" title="Content Management :: Allows easy management of all website content."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/content.png" alt="Content Management" border="0" /></a>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['menus']): ?><a class="hintanchor" href="admin.php?page=menus" title="Menu Management :: Allows easy management of the sites menu system."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/mainmenu.png" alt="Menu Management" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['users']): ?><a class="hintanchor" href="admin.php?page=users" title="User Management :: Allows management of all users who are registered on the site."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/mainuser.png" alt="User Management" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['group']): ?><a class="hintanchor" href="admin.php?page=group" title="Group Management :: Allows management of website groups."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/maingroups.png" alt="Group Management" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['patrol']): ?><a class="hintanchor" href="admin.php?page=patrol" title="Group Site Management :: Allows easy management of group sites."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/maingroupsite.png" alt="Group Site Management" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['subsite']): ?><a class="hintanchor" href="admin.php?page=subsite" title="Sub Site Management :: Allows management of sub sites."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/mainsubsites.png" alt="Sub Site Management" border="0"/></a><?php endif; ?>
    </div>
    <div style="float:left;">
        <?php if ($this->_tpl_vars['mainpageauth']['logfile']): ?><a class="hintanchor" href="admin.php?page=logfile" title="Error Log :: Shows a list of all major errors that have happened to CMScout."><img class="main-menu" src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/error.png" alt="Error Log" border="0"/></a><?php endif; ?>
    </div>
</td>
<td style="width:400px;">
    <p class="accTitle2">Online Users</p>
    <div class="accContent2"><table width="390" cellpadding="0" cellspacing="0" border="0" align="center" class="table rowstyle-alt paginate-10" id="sortTable3">
    <thead>
      <tr>
        <th scope="col" class="smallhead sortable">Username</th>
        <th scope="col" class="smallhead sortable">Logged on</th>
        <th scope="col" class="smallhead sortable">Last update</th>
        <th scope="col" class="smallhead sortable">Current Page</th>
      </tr>
      </thead><tbody>
      <?php unset($this->_sections['users']);
$this->_sections['users']['name'] = 'users';
$this->_sections['users']['loop'] = is_array($_loop=$this->_tpl_vars['numusers']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['users']['show'] = true;
$this->_sections['users']['max'] = $this->_sections['users']['loop'];
$this->_sections['users']['step'] = 1;
$this->_sections['users']['start'] = $this->_sections['users']['step'] > 0 ? 0 : $this->_sections['users']['loop']-1;
if ($this->_sections['users']['show']) {
    $this->_sections['users']['total'] = $this->_sections['users']['loop'];
    if ($this->_sections['users']['total'] == 0)
        $this->_sections['users']['show'] = false;
} else
    $this->_sections['users']['total'] = 0;
if ($this->_sections['users']['show']):

            for ($this->_sections['users']['index'] = $this->_sections['users']['start'], $this->_sections['users']['iteration'] = 1;
                 $this->_sections['users']['iteration'] <= $this->_sections['users']['total'];
                 $this->_sections['users']['index'] += $this->_sections['users']['step'], $this->_sections['users']['iteration']++):
$this->_sections['users']['rownum'] = $this->_sections['users']['iteration'];
$this->_sections['users']['index_prev'] = $this->_sections['users']['index'] - $this->_sections['users']['step'];
$this->_sections['users']['index_next'] = $this->_sections['users']['index'] + $this->_sections['users']['step'];
$this->_sections['users']['first']      = ($this->_sections['users']['iteration'] == 1);
$this->_sections['users']['last']       = ($this->_sections['users']['iteration'] == $this->_sections['users']['total']);
?>
      <tr class="text">
        <td class="text"><?php if ($this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['isguest'] == 0): ?><a href="admin.php?page=users&amp;subpage=users_view&amp;id=<?php echo $this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['uname']; ?>
</a><?php else: ?><?php echo $this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['uname']; ?>
<?php endif; ?>&nbsp;<a href="admin.php?page=users&amp;action=logout&amp;id=<?php echo $this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['id']; ?>
"><?php if ($this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['isactive'] == 1): ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/active.png" border="0" alt="Active" title="Active" /><?php else: ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/inactive.png" border="0" alt="Inactive" title="Inactive" /><?php endif; ?></a></td>
        <td class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['logon']+$this->_tpl_vars['timeoffset'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</td>
        <td class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['lastupdate']+$this->_tpl_vars['timeoffset'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</td>
        <td class="text"><?php echo $this->_tpl_vars['onlineusers'][$this->_sections['users']['index']]['location']; ?>
</td>
      </tr>
      <?php endfor; endif; ?></tbody>
    </table></div>
    <p class="accTitle2">Statistics</p>
    <div class="accContent2"><div class="field">
    <div class="fieldItem"><span class="label">Registered Users</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['numusers']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Groups</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['numgroups']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Content Pages</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['pages']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Photo Albums</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['albums']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Photos</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['photos']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Articles</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['articles']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Forum Topics</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['topics']; ?>
</div></div><br />
    <div class="fieldItem"><span class="label">Forum Posts</span>
    <div class="inputboxwrapper" style="width:10px;"><?php echo $this->_tpl_vars['stats']['posts']; ?>
</div></div><br />
    </div></div>
    <p class="accTitle2">Groups</p>
    <div class="accContent2"><table width="390" cellpadding="0" cellspacing="0" border="0" align="center" class="table rowstyle-alt paginate-15" id="sortTable2">
    <thead>
      <tr>
        <th scope="col" class="smallhead sortable">Name</th>
        <th scope="col" class="smallhead sortable-numeric">Number of Users</th>
      </tr></thead>
      <tbody>
      <?php unset($this->_sections['group']);
$this->_sections['group']['name'] = 'group';
$this->_sections['group']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['group']['show'] = true;
$this->_sections['group']['max'] = $this->_sections['group']['loop'];
$this->_sections['group']['step'] = 1;
$this->_sections['group']['start'] = $this->_sections['group']['step'] > 0 ? 0 : $this->_sections['group']['loop']-1;
if ($this->_sections['group']['show']) {
    $this->_sections['group']['total'] = $this->_sections['group']['loop'];
    if ($this->_sections['group']['total'] == 0)
        $this->_sections['group']['show'] = false;
} else
    $this->_sections['group']['total'] = 0;
if ($this->_sections['group']['show']):

            for ($this->_sections['group']['index'] = $this->_sections['group']['start'], $this->_sections['group']['iteration'] = 1;
                 $this->_sections['group']['iteration'] <= $this->_sections['group']['total'];
                 $this->_sections['group']['index'] += $this->_sections['group']['step'], $this->_sections['group']['iteration']++):
$this->_sections['group']['rownum'] = $this->_sections['group']['iteration'];
$this->_sections['group']['index_prev'] = $this->_sections['group']['index'] - $this->_sections['group']['step'];
$this->_sections['group']['index_next'] = $this->_sections['group']['index'] + $this->_sections['group']['step'];
$this->_sections['group']['first']      = ($this->_sections['group']['iteration'] == 1);
$this->_sections['group']['last']       = ($this->_sections['group']['iteration'] == $this->_sections['group']['total']);
?>
      <tr class="text">
        <td class="text"><a href="admin.php?page=users&amp;groupid=<?php echo $this->_tpl_vars['groups'][$this->_sections['group']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['groups'][$this->_sections['group']['index']]['name']; ?>
</a></td>
        <td class="text" style="text-align:center;"><?php echo $this->_tpl_vars['groups'][$this->_sections['group']['index']]['numusers']; ?>
</td>
      </tr>
      <?php endfor; endif; ?></tbody>
    </table></div>
    <p class="accTitle2">Members</p>
    <div class="accContent2"><?php if ($this->_tpl_vars['nummembers'] > 0): ?>
    <table width="390" cellpadding="0" cellspacing="0" border="0" align="center" class="table rowstyle-alt paginate-8" id="sortTable">
    <thead>
    <tr> 
      <th class="smallhead sortable">Name</th>
      <th width="20%" class="smallhead sortable">Relations</th>
      <th width="10%" class="smallhead sortable">Home</th>
      <th width="10%" class="smallhead sortable">Cellphone</th>
    </tr></thead>
      <tbody>
    <?php unset($this->_sections['users']);
$this->_sections['users']['name'] = 'users';
$this->_sections['users']['loop'] = is_array($_loop=$this->_tpl_vars['nummembers']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['users']['show'] = true;
$this->_sections['users']['max'] = $this->_sections['users']['loop'];
$this->_sections['users']['step'] = 1;
$this->_sections['users']['start'] = $this->_sections['users']['step'] > 0 ? 0 : $this->_sections['users']['loop']-1;
if ($this->_sections['users']['show']) {
    $this->_sections['users']['total'] = $this->_sections['users']['loop'];
    if ($this->_sections['users']['total'] == 0)
        $this->_sections['users']['show'] = false;
} else
    $this->_sections['users']['total'] = 0;
if ($this->_sections['users']['show']):

            for ($this->_sections['users']['index'] = $this->_sections['users']['start'], $this->_sections['users']['iteration'] = 1;
                 $this->_sections['users']['iteration'] <= $this->_sections['users']['total'];
                 $this->_sections['users']['index'] += $this->_sections['users']['step'], $this->_sections['users']['iteration']++):
$this->_sections['users']['rownum'] = $this->_sections['users']['iteration'];
$this->_sections['users']['index_prev'] = $this->_sections['users']['index'] - $this->_sections['users']['step'];
$this->_sections['users']['index_next'] = $this->_sections['users']['index'] + $this->_sections['users']['step'];
$this->_sections['users']['first']      = ($this->_sections['users']['iteration'] == 1);
$this->_sections['users']['last']       = ($this->_sections['users']['iteration'] == $this->_sections['users']['total']);
?>
    <tr class="text">
      <td class="text"><a href="admin.php?page=troop&amp;action=view&amp;id=<?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['lastName']; ?>
, <?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['firstName']; ?>
</a></td>
      <td class="text"><?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['relations']; ?>
</td>
      <td class="text"><?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['home']; ?>
</td>
      <td class="text"><?php echo $this->_tpl_vars['members'][$this->_sections['users']['index']]['cell']; ?>
</td>
    </tr>
    <?php endfor; endif; ?>
    </tbody>
    </table>
    <?php else: ?>
    <div align="center">No members</div>
    <?php endif; ?></div>
</td>
</tr>
<tr>
<td colspan="2">
<?php if ($this->_tpl_vars['newversion'] != false): ?>
  <?php if ($this->_tpl_vars['latest']): ?>
    <div align="left" style="color:#009900;">You are using the latest version of CMScout.</div>
  <?php elseif ($this->_tpl_vars['beyond']): ?>
    <div align="left" style="color:#009900;">You are using a un-released/modified version of CMScout.</div>
  <?php else: ?>
    <div align="left" style="color:#990000;">Your CMScout installation is out of date. The latest version of CMScout is <?php echo $this->_tpl_vars['newversion']; ?>
 and you have version <?php echo $this->_tpl_vars['config']['version']; ?>
, please goto <a href="http://www.cmscout.za.net">http://www.cmscout.za.net</a> and download the latest version.</div>
  <?php endif; ?>
  <div align="left"><b>CMScout Message: </b><?php echo $this->_tpl_vars['cmscoutmessage']; ?>
</div>
<?php else: ?>
  <div align="left" style="color:#990000;">Unable to communicate with CMScout server.</div>
<?php endif; ?>
</td>
</tr>
</table>